<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <!-- maxlength设置最大的字符长度
         value设置输入框的默认值
         readonly只读 -->
    <form action="http://www.baidu.com">
        用户名:<input type="text" name="username" maxlength="3" value="TH" readonly><br>
        密&nbsp;&nbsp;&nbsp;码:<input type="password" name="password"><br>

        性别:<input type="radio" name="gender" value="m" checked id="r1">
        <label for="r1">男</label>
        <input type="radio" name="gender" value="w">女<br>

        兴趣爱好:<input type="checkbox" name="hobby" checked value="cy">抽烟
        <input type="checkbox" name="hobby" value="hj">喝酒
        <input type="checkbox" name="hobby" value="tt">烫头<br>

        生日:<input type="date" name="birthday"><br>
        靓照:<input type="file" name="pic"><br>

        所在地:
        <!-- value设置提交的内容  -->
        <select name="city">
            <option value="bj">北京</option>
            <option value="sjz" selected>石家庄</option>
            <option value="cs">长沙</option>
        </select><br>

        <input type="submit" value="注册">
    </form>


</body>
</html>